package gateway.api.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Jin Zheng
 * @since 1.0 2020-09-10
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
public @interface Named
{
	/**
	 * 接口名称
	 * @return
	 */
	String value();

	/**
	 * 类型
	 * @return
	 */
	GatewayType type() default GatewayType.ANY;

	/**
	 * 是否异步
	 */
	boolean async() default true;
}
